package com.eastfair.home.api;

import com.eastfair.core.base.R;
import com.eastfair.home.dto.DrawingPageQuery;
import com.eastfair.home.dto.ReportServiceAuditDTO;
import com.eastfair.home.vo.DrawingVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;


/**
 * @author linan
 */
@FeignClient(value = "home/reportServiceAudit")
public interface ReportServiceAuditFeign {


    /**
     * 图纸列表
     * @param reportServiceAuditList reportServiceAuditList
     * @return R<Boolean>
     */
    @PostMapping("/saveReportServiceAudit")
    R<Boolean> saveReportServiceAudit(@RequestBody List<ReportServiceAuditDTO> reportServiceAuditList);

    /**
     * 更新未生成订单的报馆服务审核记录
     * @param reportServiceAuditDTOS reportServiceAuditDTOS
     * @return R<Boolean>
     */
    @PostMapping("/updateByItem")
    R<Boolean> updateByItem(@RequestBody List<ReportServiceAuditDTO> reportServiceAuditDTOS);
    /**
     * 删除当前报馆服务审核
     * @param reportSpaceId reportSpaceId
     * @return R<Boolean>
     */
    @GetMapping(value = "/delServiceAuditByReportSpaceId")
    R<Boolean> delServiceAuditByReportSpaceId(@RequestParam("reportSpaceId") Long reportSpaceId);
}
